#!/usr/bin/env python3
"""
GCR Solver Manager - Simplified Build and Log Management System
"""

from setuptools import setup, find_packages
from pathlib import Path

# Read README file
readme_file = Path(__file__).parent / "README.md"
long_description = readme_file.read_text() if readme_file.exists() else ""

# Simplified requirements
requirements = [
    "click>=8.1.0",
    "pyyaml>=6.0.1",
    "paramiko>=3.3.0",
    "log-database-manager@file:///home/linden/claude/packages/log-database-manager"
]

setup(
    name="gcr-solver-manager",
    version="1.0.0",
    description="Lightweight Python tool for managing GCR solver builds, tests, and log analysis",
    long_description=long_description,
    long_description_content_type="text/markdown",
    author="GCR Development Team",
    author_email="dev@gcr-solvers.org",
    url="https://github.com/gcr-solvers/gcr-solver-manager",
    packages=find_packages(where="src"),
    package_dir={"": "src"},
    include_package_data=True,
    install_requires=requirements,
    extras_require={
        "dev": [
            "pytest>=7.0.0",
            "pytest-cov>=4.0.0",
            "black>=22.0.0",
            "flake8>=5.0.0",
        ]
    },
    entry_points={
        "console_scripts": [
            "gsm=gcr_solver_manager.cli.core_commands:main",
            "gsm-advanced=gcr_solver_manager.cli.simple_commands:cli",
            "gcr-manager=gcr_solver_manager.cli.core_commands:main",
        ],
    },
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
        "Operating System :: POSIX :: Linux",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Topic :: Scientific/Engineering :: Physics",
        "Topic :: Software Development :: Build Tools",
        "Topic :: System :: Systems Administration",
    ],
    python_requires=">=3.8",
    keywords="gcr helmholtz solver cuda hip mpi slurm",
    project_urls={
        "Bug Reports": "https://github.com/gcr-solvers/gcr-solver-manager/issues",
        "Source": "https://github.com/gcr-solvers/gcr-solver-manager",
    },
)